public class ChargedItemClassModel extends ChargedItemClass<ChargedItemClassFieldModel> implements XMLMarshallable, ICatalogObject, ITagNameProvider
ChargedItemClass adding XML marshalling.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargedItemClass">
<xs:complexType>
<xs:sequence>
<xs:element ref="chargedItemClassField" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required" />
<xs:attribute name="description" type="xs:string" />
<xs:attribute name="reference" type="xs:decimal" />
<xs:attribute name="owner" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_NAME |
| Constructor and Description |
|---|
ChargedItemClassModel() |
ChargedItemClassModel(String code,
String description,
String owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
ChargedItemClassModel |
duplicate() |
String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
getCode, getDescription, getOwner, getReference, setCode, setDescription, setOwner, setReferenceaddPropertyDescription, getProperties, getPropertiesAsList, getPropertiesSize, getPropertyByName, removePropertyDescription, setWithCheck, withCheckequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOwnerpublic static final String MODEL_NAME
public String getTagName()
ITagNameProvidergetTagName in interface ITagNameProviderpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic ChargedItemClassModel duplicate()
public void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into